from django.urls import path, re_path
from hospitals.views import DepartmentListAPIView, DepartmentListAllAPIView, HospitalListAPIView, HospitalDetailAPIView

urlpatterns = [
    path('departmentList/', DepartmentListAPIView.as_view()),
    path('departmentListAll/', DepartmentListAllAPIView.as_view()),
    re_path(r'^hospitalList/(?P<departmentID>\d+)/$', HospitalListAPIView.as_view()),
    path('hospitalInfo/<int:id>/', HospitalDetailAPIView.as_view()),
]
